home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Champak 29
/
Volume 29 - JOGO DISK .iso
/
Games
/
jungle_adventure.swf
/
scripts
/
__Packages
/
SSShapeInstance.as
< prev
next >
Wrap
Text File
|
2006-11-29
|
1KB
|
51 lines
class SSShapeInstance extends SSObject
{
var isInstance = true;
var assetID = null;
function SSShapeInstance(obj)
{
super();
this.world = null;
this.parent = null;
this.target = null;
this.isInstance = true;
this.inScene = false;
this.__proto__ = {__proto__:obj};
this.__proto__.queueForDisplay = SSShape.prototype.queueForDisplay;
}
function editor_onAddToDocument(doc, cn, args)
{
var _loc5_ = args[0];
var _loc3_ = doc.objects;
var _loc2_ = _loc3_.length;
var _loc4_ = undefined;
while((_loc2_ = _loc2_ - 1) > -1)
{
if(_loc3_[_loc2_].name == _loc5_)
{
_loc4_ = _loc3_[_loc2_];
break;
}
}
points = _loc4_.points;
if(!_loc4_.instances)
{
_loc4_.instances = [];
}
_loc4_.instances.push(this);
}
function editor_display()
{
this.target.clear();
this.target.beginFill(13408767,20);
this.target.moveTo(points[0].x,points[0].y);
var _loc2_ = points.length;
while((_loc2_ = _loc2_ - 1) > -1)
{
this.target.lineStyle(0,!points[_loc2_].props ? 8947848 : 16711680);
this.target.lineTo(points[_loc2_].x,points[_loc2_].y);
}
this.target.endFill();
}
}